# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: api\descriptors\worker.py
from collections import OrderedDict

data = OrderedDict(
    [
        ("basePath", "/api/v1"),
        ("consumes", ["application/json"]),
        (
            "definitions",
            OrderedDict(
                [
                    ("EmptyObject", OrderedDict([("type", "object")])),
                    (
                        "ErrorDescriptionResponse",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "code",
                                                OrderedDict([("type", "integer")]),
                                            ),
                                            (
                                                "details",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [("type", "string")]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "reason",
                                                OrderedDict([("type", "string")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["reason", "code"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "WorkerRegistrationData",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "description",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "master_endpoint",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "ssl_verify_master",
                                                OrderedDict(
                                                    [
                                                        ("default", False),
                                                        ("type", "boolean"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "ssl_verify_worker",
                                                OrderedDict(
                                                    [
                                                        ("default", False),
                                                        ("type", "boolean"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "worker_endpoint",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["master_endpoint"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "WorkerStatusData",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "authorization",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            [
                                                                "pending",
                                                                "rejected",
                                                                "authorized",
                                                                "detached",
                                                            ],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "master_endpoint",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "ssl_verify_master",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "status",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            [
                                                                "online",
                                                                "offline",
                                                                "suspended",
                                                            ],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                ]
            ),
        ),
        ("host", "acunetix-installation"),
        (
            "info",
            OrderedDict(
                [
                    (
                        "contact",
                        OrderedDict(
                            [
                                ("email", "support@acunetix.com"),
                                ("name", "Acunetix"),
                                ("url", "https://www.acunetix.com/support"),
                            ]
                        ),
                    ),
                    ("license", OrderedDict([("name", "Acunetix EULA")])),
                    ("title", "Acunetix Worker API"),
                    ("version", "1.0.0"),
                ]
            ),
        ),
        (
            "paths",
            OrderedDict(
                [
                    (
                        "/check",
                        OrderedDict(
                            [
                                (
                                    "get",
                                    OrderedDict(
                                        [
                                            ("operationId", "check_communication"),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            204,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatusData",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/register",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "register"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/WorkerRegistrationData",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/resume_accepting_new_jobs",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            (
                                                "operationId",
                                                "resume_accepting_new_jobs",
                                            ),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/set_offline",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "set_offline"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/set_online",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "set_online"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/status",
                        OrderedDict(
                            [
                                (
                                    "get",
                                    OrderedDict(
                                        [
                                            ("operationId", "get_status"),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatusData",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/suspend_accepting_new_jobs",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            (
                                                "operationId",
                                                "suspend_accepting_new_jobs",
                                            ),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/unregister",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "un_register"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerStatus"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                ]
            ),
        ),
        ("produces", ["application/json"]),
        ("schemes", ["https"]),
        (
            "securityDefinitions",
            OrderedDict(
                [
                    (
                        "scanner_authorization",
                        OrderedDict(
                            [("in", "header"), ("name", "X-Auth"), ("type", "apiKey")]
                        ),
                    )
                ]
            ),
        ),
        ("swagger", "2.0"),
    ]
)
